const initialState: MenuReducer.State = {
  menuItems: [
    {
      id: 1,
      items: [
        {
          id: 1,
          text: '我的一天',
          icon: 'Sun',
          color: '#357880'
        },
        {
          id: 2,
          text: '重要',
          icon: 'star',
          color: '#ac395d'
        },
        {
          id: 3,
          text: '计划内',
          icon: 'calendar-check',
          color: '#166f6b'
        },
        {
          id: 4,
          text: '任务',
          icon: 'home',
          color: '#5f73c2'
        }
      ],
      removable: false
    },
    {
      id: 2,
      items: [
        {
          id: 5,
          text: '杂货'
        },
        {
          id: 6,
          text: '无标题列表'
        }
      ],
      removable: true
    }
  ]
};

export default function menuReducer<T>(state = initialState, action: StoreTypes.Action<MenuReducer.ActionTypes, T>) {
  const { type } = action;
  switch (type) {
    default:
      return state;
  }
}
